' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%          N a m e :   T - P u p p e r _ 0 7 . t x t                                 D a t e :   0 8   S e p   2 0 2 3   Q%
 
 ' Q%      A u t h o r :   L e o n a r d o                                                                                   Q%
 
 ' Q%        S c o p e :   U s e   T S I O   t o   m a n a g e   t h e   s e r v o   m o t o r   o f   P u p p e r           Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%  M O T O R   S e r v o 1     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 2     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 3     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 4     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 5     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 6     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 7     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 8     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 9     F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 1 0   F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 1 1   F T 9 0 M                                                                                 Q%
 
 ' Q%  M O T O R   S e r v o 1 2   F T 9 0 M                                                                                 Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%  H W :   T S I O - 8     s e r v o   1   t o   9                                                                       Q%
 
 ' Q%          T S I O - 9     s e r v o   1 0   t o   1 2                                                                   Q%
 
 ' Q%          M a s t e r - V 1   3   e n c o d e r     a n d   b u t t o n s                                               Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%  *     N o t e :                                                                                                       Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%I S O           C u l t u r e       G e n d e r                         N a m e                                         Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%" E N G   M "     E N - U S         M a l e             M i c r o s o f t   D a v i d   D e s k t o p                   Q%
 
 ' Q%" E N G   F "     E N - U S         F e m a l e         M i c r o s o f t   Z i r a   D e s k t o p                     Q%
 
 ' Q%" I T A "         I T - I T         F e m a l e         M i c r o s o f t   E l s a   D e s k t o p                     Q%
 
 ' Q%" J P N "         J A - J P         F e m a l e         M i c r o s o f t   H a r u k a   D e s k t o p                 Q%
 
 ' Q%" Z H O "         Z H - C N         F e m a l e         M i c r o s o f t   H u i h u i   D e s k t o p                 Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 ' L o a d   i m a g e s \ T - P u t t e r . p n g 
 
 B e e p   " 2 5 0 0   2 0 ,   1 5 0 0   1 0 0 " 
 
 ' s 2   =   T T S v o i c e s 
 
 T T S   S e l e c t V o i c e   " E N G   F " 
 
 ' T T S   S e l e c t V o i c e   " E N G   M " 
 
 T T S   S e t V o l u m e   1 0 0 
 
 T T S   S e t S p e e d   - 2 
 
 ' T T S   S p e a k   " T h e r e m i n o   A u t o m a t i o n   p r o g r a m m i n g   l a n g u a g e   i s   r u n n i n g . " 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o M o t o r s             =   5 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t               =   5 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t         =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ E x t e r n a l C o m m a n d s             =   5 3 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m Q R D e c o d e   =   5 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ W o r d R e c o g n i z e d                 =   5 5 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %      %%%%  %%%%%
 
 '   Q%  S L O T   I N I T I A L I Z A T I O N S                                               Q%  %%%%  %      %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%      %
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S e t W a y P o i n t     =     1 4 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e       =   1 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ M u l t i A n a B t n       =   2 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ B u t t o n F L             =   3 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ B u t t o n F R             =   3 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ B u t t o n R L             =   3 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ B u t t o n R R             =   3 3 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 1             =   2 5     ' O m e r u s 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 2             =   2 7     ' F e m u r 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 3             =   2 9     ' T i b i a 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r S l o w       =     2 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ B t n Y e l l o w 1         =     3 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ B t n B l u e 1             =     3 7 
 
 V a r i a b l e   N u m e r i c   S l o t _ B t n G r e e n 1           =     3 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ B t n W h i t e 1           =     3 9 
 
 V a r i a b l e   N u m e r i c   S l o t _ B t n R e d 1               =     4 0 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B t n B l a c k 1           =     3 6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B t n Y e l l o w 2         =     3 7 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B t n G r e e n 2           =     3 8 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B t n B l u e 2             =     3 9 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B t n W h i t e 2           =     4 0 
 
 ' 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ A u d i o I n 1             =   9 9 5 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ A u d i o I n 2             =   9 9 6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ A u d i o I n 3             =   9 9 7 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 1               =   1 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 2               =   2 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 3               =   3 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ M 4                     =   4 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ M 5                     =   5 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ M 6                     =   6 0 1 
 
 ' ' V a r i a b l e   N u m e r i c   S l o t _ M 7                     =   7 0 1 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 1 p o s       =   1 0 2 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 2 p o s       =   2 0 2 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 3 p o s       =   3 0 2 
 
 ' 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 3 a c c         =   3 2 1 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 3 s p e e d     =   3 2 2 
 
 ' 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o i n t _ 1 c e n t e r   =   1 2 3 
 
 ' 
 
 V a r i a b l e   N u m e r i c   S l o t _ M o t o r s F P S           =     5 6 
 
 ' V a r i a b l e   S t r i n g   A n i m a t e S t a t u s               =   " A n i m a t e O F F " 
 
 V a r i a b l e   S t r i n g   F i v e B t n S t a t u s               =   " F i v e B u t t o n O F F " 
 
 ' V a r i a b l e   S t r i n g   S e n s o r s S t a t u s               =   " S e n s o r s O F F " 
 
 
 
 ' V a r i a b l e   S t r i n g   W i F i _ U S B _ S t a t u s   =   " U S B _ A c t i v e " 
 
 
 
 ' _% % % %  T S I O   8    % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S H A R P               =   8 1 0       ' p i n   A D C   1 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ P o t e n t i o m       =   8 1 2       ' p i n   A D C   2 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ P o s F e e d b a c k   =   8 1 4       ' p i n   A D C   3 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ I R M o v S e n s o r   =   8 1 6       ' p i n   A D C   4 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ H a l l A n a l o g     =   8 1 8       ' p i n   A D C   5 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o y _ Y               =   8 2 0       ' p i n   A D C   6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o y _ X               =   8 2 2       ' p i n   A D C   7 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ M u l t i A n a B t n   =   8 2 4       ' p i n   A D C   8 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ J o y T o p B t n       =   8 2 6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ L i m i t S e n s o r   =   8 2 8 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ R e d                   =   9 6 6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ G r e                   =   9 6 8 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B l u                   =   9 7 2 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ W h i t e               =   9 7 4 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F L 1         =   8 6 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F L 2         =   8 6 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F L 3         =   8 6 8 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F R 1         =   8 5 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F R 2         =   8 6 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ F R 3         =   8 6 2 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R L 1         =   9 5 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R L 2         =   9 6 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R L 3         =   9 6 2 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R R 1         =   8 7 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R R 2         =   8 7 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e r v o _ R R 3         =   8 7 4 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  B U T T O N S                                                       Q%  %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 B u t t o n   1   L a b e l   M o t o r F P S 
 
 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 
 
 B u t t o n   2   L a b e l   O p e n F P S 
 
 B u t t o n   O p e n F P S   T e x t   " O p e n   F P S   s c o p e " 
 
 B u t t o n   O p e n F P S   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   3   L a b e l   R e c o g n i z e E n c o d e r 
 
 B u t t o n   R e c o g n i z e E n c o d e r     T e x t   " R e c o g n i z e "   +   C R L F   +   " E n c o d e r " 
 
 B u t t o n   R e c o g n i z e E n c o d e r     C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   4   L a b e l   V o i c e 
 
 B u t t o n   V o i c e   T e x t   " V o i c e " 
 
 B u t t o n   V o i c e   C o l o r   B l u e 
 
 
 
 B u t t o n   5   L a b e l   S e n s o r s S e t 
 
 B u t t o n   S e n s o r s S e t   T e x t   " S e n s o r s O F F " 
 
 B u t t o n   S e n s o r s S e t   C o l o r   D a r k S a l m o n 
 
 
 
 B u t t o n   6   L a b e l   R e d _ 8 
 
 B u t t o n   R e d _ 8   T e x t   " R E D " 
 
 B u t t o n   R e d _ 8   C o l o r   R e d 
 
 
 
 B u t t o n   7   L a b e l   G r e _ 8 
 
 B u t t o n   G r e _ 8   T e x t   " G R E E N " 
 
 B u t t o n   G r e _ 8   C o l o r   L i m e G r e e n 
 
 
 
 B u t t o n   8   L a b e l   B l u _ 8 
 
 B u t t o n   B l u _ 8   T e x t   " B L U E " 
 
 B u t t o n   B l u _ 8   C o l o r   B l u e 
 
 
 
 B u t t o n   9   L a b e l   W h i _ 8 
 
 B u t t o n   W h i _ 8   T e x t   " W H I T E " 
 
 B u t t o n   W h i _ 8   C o l o r   F l o r a l W h i t e 
 
 
 
 B u t t o n   1 0   L a b e l   O f f _ 8 
 
 B u t t o n   O f f _ 8   T e x t   " B L A C K " 
 
 B u t t o n   O f f _ 8   C o l o r   B l a c k 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                     Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 D i s a b l e A l l B u t t o n s 
 
 
 
 L o a d   T h e r e m i n o _ M o t o r s . e x e 
 
 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M o t o r s . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ T S I O 8 . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ T S I O 9 . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M a s t e r _ E n c . e x e 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 W a i t   A p p l i c a t i o n   " T h e r e m i n o _ M o t o r s " 
 
 ' W a i t   S e c o n d s   3 
 
 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " E n a b l e C o n n e c t i o n " ) 
 
 W a i t A p p l i c a t i o n s S t a r t e d 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     M O T O R S   m u s t   b e   a c t i v e   b e f o r e   C o b o t 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M a s t e r _ E n c . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ S T R . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 ' L o a d   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 ' L o a d   T h e r e m i n o _ V o i c e C o m m a n d s . e x e 
 
 L o a d   T h e r e m i n o _ A u d i o I n p u t . e x e 
 
 ' L o a d   " . . \ F i l e s \ W i F i _ c o n t r o l l e r _ b u t t o n s . t x t " 
 
 
 
 L o a d   H i d e 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    E X E C U T I O N   S T A R T   F R O M   H E R E                                   Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 ' R e c o g n i z e E n c o d e r 
 
 R e s e t E n c o d e r s 
 
 ' S e t I O T S l o t s T o Z e r o 
 
 ' S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 ' C o n t r o l s   O p e n T e x t B o x 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 E n a b l e A l l B u t t o n s 
 
 T T S   S p e a k   " R e a d y " 
 
 L o o p 
 
 
 
 S t o p                                                                 ' 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                               Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 ' A u d i o I n p u t 
 
 	 ' C u r r e n t M e t e r 
 
 	 ' T o r q u e M e t e r 
 
 	 S h o w M o t o r F P S 
 
 	 E n c o d e r s 
 
 	 ' T e s t T e m p 
 
 	 
 
 	 I f   F i v e B t n S t a t u s     =   " F i v e B u t t o n O N " 
 
 	 	 F i v e B u t t o n s 
 
 	 E n d I f 
 
 	 ' 
 
 	 ' I f   S e n s o r s S t a t u s     =   " S e n s o r s O N " 
 
 	 ' 	 S e n s o r s 
 
 	 ' E n d I f 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%    W A I T   C O B O T   R E A D Y                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%    W A I T   A P P S   S T A R T E D                                                   Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   W a i t A p p l i c a t i o n s S t a r t e d 
 
 	 S l o t ( S l o t _ M o t o r s F P S )   =   0 
 
 	 W a i t   S l o t ( S l o t _ M o t o r s F P S )   >   1 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )       Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 ' S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " D i s a b l e C o n n e c t i o n " ) 
 
 	 ' L o a d   C l o s e A p p s   " . . \ F i l e s \ W i F i _ c o n t r o l l e r _ b u t t o n s . t x t " 
 
 	 S t o p C o b o t 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 E n d 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 ' '   Q%  C L O S E   A L L     ( w h e n   p r e s s i n g   X   o n   f o r m )     Q%  %      %      %    %  %%%%  %%%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 ' L a b e l   C l o s e A l l 
 
 ' 	 B e e p 
 
 ' 	 W a i t   S e c o n d s   1 
 
 ' 	 B e e p 
 
 ' 	 W a i t   S e c o n d s   1 
 
 ' 	 B e e p 
 
 ' 	 W a i t   S e c o n d s   1 
 
 ' 
 
 ' 	 S t o p P u m p 
 
 ' 	 S t o p C o b o t 
 
 ' 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 ' 	 ' G o T o H o m e 
 
 ' 	 D e A c t i v a t e M o t o r s 
 
 ' 	 L o a d   C l o s e A p p s   " . . \ F i l e s \ W i F i _ c o n t r o l l e r _ b u t t o n s . t x t " 
 
 ' 	 L o a d   C l o s e A l l 
 
 ' E n d 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 	 	 	 ' ( D e s t i n a t i o n   S l o t ) ( C o m m a n d   S t r i n g ) 
 
 	 V a r i a b l e   N u m e r i c   S C 1 
 
 	 V a r i a b l e   S t r i n g     S C 2 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 7   ' < - -   T h e   t i m e o u t   i n   s e c o n d s   w a s   0 . 5 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%C O M M A N D S   T O   C O B O T Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 '   %%%%  %%%%  %%  %%  %%  %%      %%%%%  %%%%      %%%%  %%%%  %%%    %%%%  %%%%%
 
 '   %        %    %  %  %  %  %  %  %          %      %    %      %        %    %  %%%%  %    %      %
 
 '   %%%%  %%%%  %      %  %      %  %      %      %%%%      %%%%  %%%%  %%%%  %%%%      %
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t o p E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w U p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w U p " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w D o w n C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w D o w n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   U p d a t e C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " C o r r e c t S e l e c t e d P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D e l e t e S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D e l e t e S e l e c t e d L i n e " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A d d N e w P o s i t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A d d N e w P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E n a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D i s a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                       Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 
 
 ' L a b e l   S e n s o r s S e t 
 
 ' 	 I f   S e n s o r s S t a t u s     =   " S e n s o r s O F F " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   T e x t   " S e n s o r s   O N " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   C o l o r   F l a s h i n g _ 9   L i m e   S n o w 
 
 ' 	 	 S e n s o r s S t a t u s     =   " S e n s o r s O N " 
 
 ' 	 E l s e 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   T e x t   " S e n s o r s   O F F " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   C o l o r   D a r k S a l m o n 
 
 ' 	 	 S e n s o r s S t a t u s     =   " S e n s o r s O F F " 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 
 
 L a b e l   E n a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w M o t o r F P S 
 
 	 V a r i a b l e   S t r i n g   M o t o r s A r e E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   S M F 1   =   S l o t ( S l o t _ M o t o r s F P S ) 
 
 	 I f   S M F 1   >   3 0 
 
 	 	 I f   M o t o r s A r e E n a b l e d   < >   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   G r e e n Y e l l o w 
 
 	 	 E n d I f 
 
 	 	 B u t t o n   M o t o r F P S   T e x t   " F P S   "   +   S t r ( S M F 1 ) 
 
 	 E l s e 
 
 	 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " F A L S E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 	 	 	 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   M o t o r F P S 
 
 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " D i s a b l e C o n n e c t i o n " ) 
 
 	 E l s e 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " E n a b l e C o n n e c t i o n " ) 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%      %%%    %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  F I V E   P U S H   B U T T O N S     Q%  %%%      %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%      %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 V a r i a b l e   S t r i n g   P r e s s e d B u t t o n 
 
 L a b e l   F i v e B u t t o n s 
 
 	 V a r i a b l e   N u m e r i c   F B 0 
 
 	 V a r i a b l e   N u m e r i c   F B 1 
 
 	 V a r i a b l e   N u m e r i c   F B 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a d   t h e   v a l u e   t w o   t i m e s 
 
 	 F B 1   =   S l o t ( S l o t _ M u l t i A n a B t n ) 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   s i m i l a r   v a l u e s 
 
 	 I f   A b s ( F B 2   -   F B 1 )   <   1 0 
 
 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   a r m e d 
 
 	 	 I f   F B 0   =   0 
 
 	 	 	 F B 0   =   1 
 
 	 	 	 S e l e c t   T r u e 
 
 	 	 	 	 C a s e   F B 1   >   5 0 0 
 
 	 	 	 	 	 P r i n t   " " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " " 
 
 	 	 	 	 	 ' S l o t ( S l o t _ W h i t e )   =   0 
 
 	 	 	 	 	 ' O f f _ 8 
 
 	 	 	 	 C a s e   F B 1   >   2 5 0 
 
 	 	 	 	 	 P r i n t   " r e d " 
 
 	 	 	 	 	 ' P r e s s e d B u t t o n   =   " r e d " 
 
 	 	 	 	 	 ' R e d _ 8 
 
 	 	 	 	 	 
 
 	 	 	 	 C a s e   F B 1   >   1 2 0 
 
 	 	 	 	 	 P r i n t   " w h i t e " 
 
 	 	 	 	 	 ' P r e s s e d B u t t o n   =   " w h i t e " 
 
 	 	 	 	 	 ' W h i _ 8 
 
 	 	 	 	 	 ' S l o t ( S l o t _ W h i t e )   =   1 0 0 0 
 
 	 	 	 	 C a s e   F B 1   >   5 6 
 
 	 	 	 	 	 P r i n t   " g r e e n " 
 
 	 	 	 	 	 ' P r e s s e d B u t t o n   =   " g r e e n " 
 
 	 	 	 	 	 ' G r e _ 8 
 
 	 	 	 	 C a s e   F B 1   >   1 5 
 
 	 	 	 	 	 P r i n t   " b l u e " 
 
 	 	 	 	 	 ' P r e s s e d B u t t o n   =   " b l u e " 
 
 	 	 	 	 	 ' B l u _ 8 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 P r i n t   " y e l l o w " 
 
 	 	 	 	 	 ' P r e s s e d B u t t o n   =   " y e l l o w " 
 
 	 	 	 	 	 ' Y e l _ 8 
 
 	 	 	 	 	 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 	 F B 2   =   F B 1 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   F B 1   >   5 0 0 
 
 	 	 F B 0   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S e t I O T S l o t s T o Z e r o 
 
 	 ' S l o t ( S l o t _ E n c o d e r S l o w )   =   0 
 
 	 S l o t ( S l o t _ B t n Y e l l o w 1 )     =   0 
 
 	 S l o t ( S l o t _ B t n B l u e 1 )         =   0 
 
 	 S l o t ( S l o t _ B t n G r e e n 1 )       =   0 
 
 	 S l o t ( S l o t _ B t n W h i t e 1 )       =   0 
 
 	 S l o t ( S l o t _ B t n R e d 1 )           =   0 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%  %%%%  %%%%  %%%  %%%%
 
 '   Q%    S   C   O   P   E   S           Q%  %%%%  %      %    %  %%%%  %%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%  %        %%%  %%%%
 
 L a b e l   C l o s e S c o p e s 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 1 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%
 
 '   Q%  L E D   C O L O R S         Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 ' L a b e l   R e d _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   G r e _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   B l u _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   Y e l _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   M a g _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   C y a _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   W h i _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   O f f _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   R e d B l i n k _ 8 
 
 F o r   v 1   =   1   T o   1 0 
 
 ' 	 	 R e d _ 8 
 
 	 B e e p 
 
 ' 	 O f f _ 8 
 
 	 B e e p 
 
 N e x t 
 
 R e t u r n 
 
 
 
 
 
 V a r i a b l e   N u m e r i c   W F 1 
 
 L a b e l   W i F i L i v e 
 
 	 I f   W F 1   >   3 0 
 
 	 	 W F 1   =   0 
 
 ' 	 	 S l o t ( S l o t _ G r e )   =     1 0 0 0 
 
 	 E l s e 
 
 	 	 W F 1   =   W F 1   +   1 
 
 ' 	 	 S l o t ( S l o t _ G r e )   =     0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%  %%%%  %      %  %%%%
 
 '   Q%    S   E   R   V   O       Q%  %%%%  %%%  %%%%  %      %  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %  %%    %%%    %%%%
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ E x t e r n a l C o m m a n d s )   =   " " 
 
 R e t u r n 
 
 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e P a r t i a l 
 
 V a r i a b l e   S t r i n g   T i m e 
 
 L a b e l   P r i n t T i m e 
 
 	 T i m e   =   " P a r t i a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e P a r t i a l ,   " 0 . 0 " ) , 4 ) 
 
 	 T i m e   =   T i m e   +   "       T o t a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e ,   " 0 . 0 " ) , 4 ) 
 
 	 ' P r i n t   S t a t u s   +   "     "   +   T i m e   +   C R L F 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%
 
 '   Q%    S A Y           Q%  %%%%  %%%%    %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %      %
 
 L a b e l   S a y 
 
 	 T T S   S e l e c t V o i c e   " E N G F " 
 
 	 T T S   S p e a k   " T o d a y   i s   a   b e a u t i f u l   d a y   b e c a u s e   w e   s p e n d   t i m e   t o g e t h e r . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " I T A   F E M " 
 
 	 T T S   S p e a k   " O g g i      u n a   b e l l a   g i o r n a t a   p e r c h e   p a s s e r e m o   d e l   t e m p o   i n s i e m e . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " J P N " 
 
 	 T T S   S p e a k   " y_0a0o0 N}k0Bf0NT0Y0n0g00Neo0W0D0eg0Y00" 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " Z H O " 
 
 	 T T S   S p e a k   " N)Y/f}Yv N)YV:NbNqQ^eIQ0" 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%  %%%%
 
 '   Q%  V O I C E       Q%    %  %    %    %  %  %        %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %  %%%%  %%%%
 
 L a b e l   V o i c e 
 
 	 ' L o a d   i m a g e s \ L I S T _ V O I C E _ C O M M A N D . j p g 
 
 	 C l e a r V o i c e C o m m a n d 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " " 
 
 	 	 B u t t o n   V o i c e   C o l o r   B l u e 
 
 	 E l s e 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 B u t t o n   V o i c e   C o l o r   F l a s h i n g 7   O r a n g e   W h i t e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   A I G P T 
 
 	 L o a d   T h e r e m i n o _ G P T . e x e 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   W o r d 
 
 V a r i a b l e   S t r i n g   V o i c e C o m m a n d s S t a t u s 
 
 L a b e l   I n t e r p r e t a t e V o i c e C o m m a n d s 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 I f   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   < >   " " 
 
 	 	 	 W o r d   =   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d ) 
 
 	 	 	 P r i n t   W o r d   +   "   " 
 
 	 	 	 I n t e r p r e t a t e 
 
 	 	 	 C l e a r V o i c e C o m m a n d 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   S h o w i n g T y p e 
 
 L a b e l   I n t e r p r e t a t e 
 
 	 S e l e c t   W o r d 
 
 	 	 C a s e   " g r e e n c a r . p i c k " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ p i c k . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " w i n d s h i e l d . s i d e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ f r o n t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " s e e . b a c k s i d e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ b a c k . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 
 
 	 	 C a s e   " d r i v e r . p r o s p e c t " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ l e f t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " r i g h t . o u t l o o k " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ r i g h t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " b o t t o m . v i e w " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ u n d e r s i d e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " r e l e a s e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ p l a c e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " g o t o . s q u a r e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ m e c h A r m _ s q u a r e . t x t     " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " g o t o . h o m e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 M a g _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ m e c h A r m _ h o m e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   W o r d   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r V o i c e C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   =   " " 
 
 R e t u r n 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%  %%  %%      %%%  %%%%      %%%%  %%%%  %%%    %%%%  %%%%%
 
 ' Q%C O M M A N D S   F R O M   C O B O T Q%  %        %    %  %  %  %  %  %  %      %%    %%%%      %        %    %  %%%%  %    %      %
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %      %  %      %      %      %  %%      %%%%  %%%%  %%%%  %%%%      %
 
 L a b e l   E v e n t _ E x t e r n a l C o m m a n d s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 ' P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   0 ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " S a y " 
 
 	 	 	 T T S   S p e a k   M i d ( C o m m a n d T e x t ,   5 ) 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " S a y W " 
 
 	 	 	 T T S   S p e a k   M i d ( C o m m a n d T e x t ,   5 ) 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 
 
 	 	 C a s e   " B e e p " 
 
 	 	 	 B e e p   8 8 0 - 1 0 0 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %  %%%%  %
 
 '   Q%  T   R   I   A   L   S                                             Q%      %      %%%%  %  %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %  %%  %  %    %  %%%
 
 ' 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%  %  %%%%  %%%%  %%%%  %%%%  %%%%  %%%%
 
 '   Q%  E N C O D E R S   U S B                       Q%  %%%    %  %%  %        %    %  %    %  %%%    %%%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%%  %%%%  %%%%  %%%%  %  %%  %%%%
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 1 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 1 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 2 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 2 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 3 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 3 
 
 
 
 L a b e l   R e a d B u t t o n s 
 
 	 S l o t ( S l o t _ B u t t o n F L )   =   3 1       ' g r e 
 
 	 S l o t ( S l o t _ B u t t o n F R )   =   3 0       ' y e l 
 
 	 S l o t ( S l o t _ B u t t o n R L )   =   3 3       ' w h y 
 
 	 S l o t ( S l o t _ B u t t o n R R )   =   3 2       ' b l u 
 
 R e t u r n 
 
 
 
 L a b e l   R e c o g n i z e E n c o d e r 
 
 	 S l o t ( 0 )   =   R e c o g n i z e 
 
 R e t u r n 
 
 
 
 L a b e l   E n c o d e r s 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 1 
 
 	 E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 D i f f e r e n c e 1   =   E n c o d e r S t e p s 1   -   O l d E n c o d e r S t e p s 1 
 
 	 O l d E n c o d e r S t e p s 1   =   E n c o d e r S t e p s 1 
 
 	 I f   D i f f e r e n c e 1   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 1   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   0 . 5 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   0 . 1 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 1 )   +   D i f f e r e n c e 1 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 1 )   +   D i f f e r e n c e 1 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 1 )   +   D i f f e r e n c e 1 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 1 )   +   D i f f e r e n c e 1 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 2 
 
 	 E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 D i f f e r e n c e 2   =   E n c o d e r S t e p s 2   -   O l d E n c o d e r S t e p s 2 
 
 	 O l d E n c o d e r S t e p s 2   =   E n c o d e r S t e p s 2 
 
 	 I f   D i f f e r e n c e 2   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 2   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   0 . 5 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   0 . 1 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 2 )   +   D i f f e r e n c e 2 ,   3 2 0 ,   7 8 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 2 )   +   D i f f e r e n c e 2 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 2 )   +   D i f f e r e n c e 2 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 2 )   +   D i f f e r e n c e 2 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 3 
 
 	 E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 	 D i f f e r e n c e 3   =   E n c o d e r S t e p s 3   -   O l d E n c o d e r S t e p s 3 
 
 	 O l d E n c o d e r S t e p s 3   =   E n c o d e r S t e p s 3 
 
 	 I f   D i f f e r e n c e 3   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 3   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 5 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 1 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 3 )   +   D i f f e r e n c e 3 ,   3 2 0 ,   7 8 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 3 )   +   D i f f e r e n c e 3 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 3 )   +   D i f f e r e n c e 3 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 3 )   +   D i f f e r e n c e 3 ,   3 3 0 ,   7 0 0 ) 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t E n c o d e r s 
 
 	 O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   V a r i a b l e 
 
 